home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFUNCS / RCEQUAL.C < prev    next >
Text File  |  1993-02-01  |  537b  |  18 lines

  1. /**************************************************************************
  2.  * RCEQUAL.C - Return TRUE/FALSE indicating rectangles are EQUAL/NOTEQUAL.
  3.  *    we cheat bigtime here:    we don't include any headers, and thus get
  4.  *    away with totally lying about the types of the two pointer args.
  5.  *************************************************************************/
  6.  
  7. long rc_equal(prect1, prect2)
  8.     long *prect1;
  9.     long *prect2;
  10. {
  11.     if (*prect1++ == *prect2++) {
  12.         if (*prect1 == *prect2) {
  13.             return 1;
  14.         }
  15.     }
  16.     return 0;
  17. }
  18.